home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Shareware
/
IDimager Personal 4.2.0.3
/
setup_IDimager_Personal_V4.exe
/
{app}
/
Tools
/
others
/
SQLServerThumbs.sql
Wrap
Text File
|
2008-06-28
|
3KB
|
99 lines
/****** Object: Database idimagerthumbs ******/
IF EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name = N'idimagerthumbs')
DROP DATABASE [idimagerthumbs]
GO
CREATE DATABASE [idimagerthumbs] ON (NAME = N'idimager_Data', FILENAME = N'c:\idimager_sqls_catalog\idimagerthumbs_Data.MDF' , SIZE = 35, FILEGROWTH = 5) LOG ON (NAME = N'idimager_Log', FILENAME = N'c:\idimager_sqls_catalog\idimagerthumbs_Log.LDF' , SIZE = 82, FILEGROWTH = 10%)
GO
exec sp_dboption N'idimagerthumbs', N'autoclose', N'false'
GO
exec sp_dboption N'idimagerthumbs', N'bulkcopy', N'false'
GO
exec sp_dboption N'idimagerthumbs', N'trunc. log', N'false'
GO
exec sp_dboption N'idimagerthumbs', N'torn page detection', N'true'
GO
exec sp_dboption N'idimagerthumbs', N'read only', N'false'
GO
exec sp_dboption N'idimagerthumbs', N'dbo use', N'false'
GO
exec sp_dboption N'idimagerthumbs', N'single', N'false'
GO
exec sp_dboption N'idimagerthumbs', N'autoshrink', N'false'
GO
exec sp_dboption N'idimagerthumbs', N'ANSI null default', N'false'
GO
exec sp_dboption N'idimagerthumbs', N'recursive triggers', N'false'
GO
exec sp_dboption N'idimagerthumbs', N'ANSI nulls', N'false'
GO
exec sp_dboption N'idimagerthumbs', N'concat null yields null', N'false'
GO
exec sp_dboption N'idimagerthumbs', N'cursor close on commit', N'false'
GO
exec sp_dboption N'idimagerthumbs', N'default to local cursor', N'false'
GO
exec sp_dboption N'idimagerthumbs', N'quoted identifier', N'false'
GO
exec sp_dboption N'idimagerthumbs', N'ANSI warnings', N'false'
GO
exec sp_dboption N'idimagerthumbs', N'auto create statistics', N'true'
GO
exec sp_dboption N'idimagerthumbs', N'auto update statistics', N'true'
GO
exec sp_dboption N'idimagerthumbs', N'trunc. log on chkpt.', N'true'
GO
use [idimagerthumbs]
GO
/****** Object: Table [dbo].[idThumbs] ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[idThumbs]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[idThumbs]
GO
/****** Object: Table [dbo].[idThumbs] ******/
CREATE TABLE [dbo].[idThumbs] (
[GUID] [nvarchar] (50) NOT NULL PRIMARY KEY,
[ImageGUID] [nvarchar] (255) NULL ,
[idType] [nvarchar] (1) NULL ,
[FileName] [nvarchar] (255) NULL ,
[MediumType] [nvarchar] (2) NULL ,
[MediumName] [nvarchar] (128) NULL ,
[MediumSerial] [float] (22) NULL ,
[idThumb] [image] NULL
) ON [PRIMARY]
GO
CREATE INDEX [idThumbs_GUID] ON [dbo].[idThumbs]([GUID]) ON [PRIMARY]
GO
CREATE INDEX [idxThumbsImageGUID] on [dbo].[idThumbs] (ImageGUID, idType) ON [PRIMARY]
GO
CREATE INDEX [idxThumbsFileName] on [dbo].[idThumbs] (FileName, MediumType, MediumName, MediumSerial, idType) ON [PRIMARY]
GO
exec sp_changedbowner 'idimager_main'
GO